package com.wj.spingcloud.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @description:
 * @author: wj
 * @create: 2021/5/12 14:56
 */
@Configuration
public class ApplicationContextConfig {

    @Bean
//    @LoadBalanced //Ribbon 负载均衡 实现端口交替
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}